home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 3 / Info_Mac_1994-01.iso / Development / Source / MultiSession 1.04 Source / Core 27⁄June⁄1993 / CYesNoBox.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-24  |  719 b   |  33 lines  |  [TEXT/KAHL]

  1. /* CYesNoBox.h */
  2.  
  3. #pragma once
  4.  
  5. #include "CModalDialog.h"
  6. #include "CSimpleButton.h"
  7.  
  8. /* possible strings for the buttons */
  9. #define YesStringID (132L*65536L + 1)
  10. #define NoStringID (132L*65536L + 2)
  11. #define CancelStringID (132L*65536L + 3)
  12.  
  13. struct    CYesButton    :    CSimpleButton
  14.     {
  15.         MyBoolean*    AnswerLoc;
  16.  
  17.         void                IYesButton(CWindow* TheModalDialog, MyBoolean* Result, Handle Text);
  18.         MyBoolean        DoThang(void);
  19.     };
  20.  
  21. struct    CNoButton    :    CSimpleButton
  22.     {
  23.         MyBoolean*    AnswerLoc;
  24.  
  25.         void                INoButton(CWindow* TheModalDialog, MyBoolean* Result, Handle Text);
  26.         MyBoolean        DoThang(void);
  27.     };
  28.  
  29. struct    CYesNoBox    :    CModalDialog
  30.     {
  31.         MyBoolean        ShouldIDoIt(long MessageID, Handle ExtraText, long YesTextID, long NoTextID);
  32.     };
  33.